import App from '../App'
import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const Home = () => import('@/pages/home/home');
const Login = () => import('@/pages/login/login');
const City = () => import('@/pages/city/city');
const Msite = () => import('@/pages/msite/msite');
const shopDetail = () => import('@/pages/shop/shopDetail');






export default new Router({
  routes: [
    {path: '/',redirect: '/home'},
    //首页城市列表页
    { path: '/home',component: Home},
    //登录页
    {path:'/login',component:Login},
    //当前选择城市页
    {path: '/city/:cityid',component:City},
    //商铺列表页
    {path: '/msite',component:Msite},
    //详情页
    {path: '/shopDetail',component:shopDetail}
  ]
})
